import 'package:flutter/material.dart';

class SecondPage extends StatefulWidget {
  @override
  _SecondPageState createState() => _SecondPageState();
}

class _SecondPageState extends State<SecondPage> {
  @override
  Widget build(BuildContext context) {
    List<String> args = ModalRoute.of(context).settings.arguments;
    return Scaffold(
      appBar: AppBar(
        title: Text(args[0]),
      ),
      body: Center(
        child: RaisedButton(
          child: Text(args[1]),
          onPressed: (){
            Navigator.pop(context, '返回数据');
          },
        ),
      ),
    );
  }
}
